package io.renren.core.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


/**
 * 新闻资讯
 *
 * @author Ark 6980gong@gmail.com
 * @since 1.0.0 2024-04-29
 */
@Data
@ApiModel(value = "新闻资讯")
public class LearnNewsDTO implements Serializable {
    private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "id")
	private Long id;

	@ApiModelProperty(value = "文章名称")
	private String title;

	@ApiModelProperty(value = "数据内容")
	private String content;

	@ApiModelProperty(value = "0：暂停  1：正常")
	private Integer status;

	@ApiModelProperty(value = "新闻时间")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date newsDate;

	@ApiModelProperty(value = "作者")
	private String author;

	@ApiModelProperty(value = "来源")
	private String newsFrom;

	@ApiModelProperty(value = "标签")
	private String tag;

	@ApiModelProperty(value = "创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date createDate;

	@ApiModelProperty(value = "更新时间")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date updateDate;


}